package learning.designpatterns.strategy.payments;

/**
 * Created by bibro on 16.03.14.
 */
public class ShoppingCardTest {

    public static void main(String[] args) {
        ShoppingCard shoppingCard = new ShoppingCard();

        Item juice = new Item("juice", 3);
        Item bread = new Item("bread", 2);

        shoppingCard.addItem(juice);
        shoppingCard.addItem(bread);

        shoppingCard.pay(new PaypalStrategy("jbibro", "mypassword"));
        shoppingCard.pay(new CreditCardStrategy("bibro", "1235436", "3656", "12/13/15"));
    }


}
